/*
 * @Date: 2022-11-26 11:21:21
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-11-26 11:53:31
 * @FilePath: \vue-admin-ts\src\views\main\system\role\options.ts
 * @Description: something
 */
import { FormOptions } from "@/components/Form/type/type";
import { TableOptions } from "@/components/Table/type/type";
export const roleTableOptions: TableOptions[] = [
  {
    prop: "id",
    label: "ID",
  },
  {
    prop: "name",
    label: "用户名",
  },
  {
    prop: "intro",
    label: "权限",
  },
  {
    prop: "createAt",
    label: "创建时间",
    align: "center",
    slot: "createAt",
  },
  {
    prop: "updateAt",
    label: "更新时间",
    align: "center",
    slot: "updateAt",
  },
  {
    prop: "operation",
    slot: "operation",
    label: "操作",
    align: "center",
    action: true,
  },
];
export const roleFormItems: FormOptions[] = [
  {
    type: "input",
    label: "角色名称",
    prop: "name",
    placeholder: "请输入角色名称",
  },
  {
    type: "input",
    label: "角色介绍",
    prop: "intro",
    placeholder: "请输入角色介绍",
  },
  {
    type: "date-picker",
    label: "创建时间",
    prop: "creatime",
    attrs: {
      type: "daterange",
      startPlaceholder: "开始时间",
      endPlaceholder: "结束时间",
    },
  },
];
